export default function downLoadVideo(file, index) {
  const blob = new Blob(file[index].recordedChunks, { type: 'video/mp4' })
  const url = URL.createObjectURL(blob)
  const a = document.createElement('a')
  a.style.display = 'none'
  a.href = url
  const name = file[index].videoTitle + (file[index].artRef?.muted ? '静音' : '有声')
  a.download = `${name}录屏.mp4`
  document.body.appendChild(a)
  a.click()
  setTimeout(() => {
    document.body.removeChild(a)
    window.URL.revokeObjectURL(url)
  }, 100)
}
